import { defineStore } from "pinia";

export const useMenuStore = defineStore("userMenu", {
  state: () => ({
    menuList: [],
  }),
  actions: {
    setMenu(menu) {
      this.menuList = menu;
    },
  },
});

// 当前菜单
export const useRouteStore = defineStore("routerStore", {
  state: () => ({
    currentRoute: "",
  }),
  actions: {
    setCurrentRoute(route) {
      this.currentRoute = route;
    },
  },
});
